home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1997 August / Walnut Creek CDROM.7z / VOL_400 / 429_01 / CHESS12 / MISC.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-29  |  400 b   |  18 lines

  1. #if !defined(MISC_HPP)
  2. #define MISC_HPP
  3.  
  4. #define uint unsigned int
  5.  
  6. typedef int BOOL;
  7. const int TRUE = 1, FALSE = 0;
  8.  
  9. // definition is local to the file in which it appears
  10. #define LOCAL static
  11. // member is instance-independent
  12. #define CLASSMEMBER static
  13.  
  14. // returns number of elements in array AA of any type elements
  15. #define ARRAY_LENGTH(AA) (sizeof(AA) / sizeof((AA)[0]))
  16.  
  17. #endif
  18.